Figure 2 . sequence diagram for a stateful command pattern 圖2.有狀態(tài)命令模式的程序表
This is an application of the command pattern 這是command模式的一個應用。
This invocation is modeled as a command pattern 這種調用采用命令模式。
Known as the command pattern to encapsulate this operator in an object )在對象中封裝這個運算符。
A simplified version of the command pattern is shown in figure 6 圖6顯示的是命令模式的一個簡化版本。
The command pattern used in this article has been simplified for clarity 本文中使用到的command模式為達到清楚明了,已作了一定的簡化。
All business logic is encapsulated in command objects by applying the command pattern 所有的業(yè)務邏輯通過應用command模式來封裝在command對象中。
Normally, such listeners are specified as instances of anonymous inner classes using the command pattern 通常,這樣的偵聽器通過使用命令模式(commandpattern)被指定為匿名內部類的實例。
Code that logs information to a file can be added to the execute operation of concretecommand in the command pattern 在command模式中,將信息記錄到文件中的代碼能夠被添加到concretecommand的execute()操作。
So far, i ve looked at asynchronous request response using message queues and business logic encapsulation using the command pattern 迄今為止,我已經觀察到可以使用消息隊列來實現(xiàn)異步的請求或響應,以及使用command模式來實現(xiàn)商業(yè)邏輯封裝。